home *** CD-ROM | disk | FTP | other *** search
- On 24-mei-97 Laurie Curwood wrote:
-
- >I am writing my own file requestor (the AMOS ones are
- >horrible, and the extension requestors are a bit crappy),
- >but I have discovered a problem: How do I read assigns?
-
- >At the moment, when looking at drives, I use Dev First$
- >and Dev Next$, but this only reads proper devices.
- >Sometimes, when used from direct mode, it reads the
- >assigns, but never from interpreted/compiled.
-
- >Has anyone else had this problem, and how did they get around it?
-
- Well, I just I tried it myself and it works fine: Both mounts and assigns are
- displayed. I tried it interpreted in Creator 1.36 and Pro 1.12 and compiled
- with the Creator compiler. (My, that's a lot of coverdisks :-).)
-
- I also used two filters: "" and "*".
-
- All these versions did the same, which was display all devices.
-
- This is the test program I used:
-
- Print Dev First$("*") 'Or Print Dev First$("")
- TELLER = 1
- Repeat
- A$ = Dev Next$
- If TELLER = 15
- Wait Key
- TELLER = 0
- Endif
- Inc TELLER
- Print A$
- Until A$ = ""
-
- --
- Branko Collin . |. .
- collin@xs4all.nl . . || ...
- http://www.xs4all.nl/~collin . ....||| .. ..
-
-
-